<html>
<head><meta charset="utf-8"><title>narrowing down my slow-to-compile functions / types · t-compiler/wg-self-profile · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/index.html">t-compiler/wg-self-profile</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/narrowing.20down.20my.20slow-to-compile.20functions.20.2F.20types.html">narrowing down my slow-to-compile functions / types</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="196813198"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/narrowing%20down%20my%20slow-to-compile%20functions%20/%20types/near/196813198" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/narrowing.20down.20my.20slow-to-compile.20functions.20.2F.20types.html#196813198">(May 07 2020 at 18:38)</a>:</h4>
<p>I'm playing around with the self-profiling to diagnose some slow-compiling code. From what I've gathered from word-of-mouth, some async code can be really big (e.g. I needed <code>#![type_length_limit = "10485760"]</code> at one point). Can I use self-profiling to narrow down which types / functions are big?</p>



<a name="196813406"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/narrowing%20down%20my%20slow-to-compile%20functions%20/%20types/near/196813406" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Wesley Wiser <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/narrowing.20down.20my.20slow-to-compile.20functions.20.2F.20types.html#196813406">(May 07 2020 at 18:40)</a>:</h4>
<p>Hmm...</p>



<a name="196813410"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/narrowing%20down%20my%20slow-to-compile%20functions%20/%20types/near/196813410" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/narrowing.20down.20my.20slow-to-compile.20functions.20.2F.20types.html#196813410">(May 07 2020 at 18:40)</a>:</h4>
<p>for example, <code>summarize</code> tells me that linking is slow (presumably because it's a chunk of code — 28MB for the executable)</p>



<a name="196813482"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/narrowing%20down%20my%20slow-to-compile%20functions%20/%20types/near/196813482" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Wesley Wiser <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/narrowing.20down.20my.20slow-to-compile.20functions.20.2F.20types.html#196813482">(May 07 2020 at 18:40)</a>:</h4>
<p>I don't think we record any data that would help you with that.</p>



<a name="196813534"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/narrowing%20down%20my%20slow-to-compile%20functions%20/%20types/near/196813534" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Wesley Wiser <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/narrowing.20down.20my.20slow-to-compile.20functions.20.2F.20types.html#196813534">(May 07 2020 at 18:41)</a>:</h4>
<p>Most of the data we record is around what the compiler is doing and when it is doing it.</p>



<a name="196813571"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/narrowing%20down%20my%20slow-to-compile%20functions%20/%20types/near/196813571" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/narrowing.20down.20my.20slow-to-compile.20functions.20.2F.20types.html#196813571">(May 07 2020 at 18:41)</a>:</h4>
<p>Right... :-\</p>



<a name="196813573"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/narrowing%20down%20my%20slow-to-compile%20functions%20/%20types/near/196813573" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Wesley Wiser <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/narrowing.20down.20my.20slow-to-compile.20functions.20.2F.20types.html#196813573">(May 07 2020 at 18:41)</a>:</h4>
<p>We don't record a lot of secondary data about the code being compiled.</p>



<a name="196813587"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/narrowing%20down%20my%20slow-to-compile%20functions%20/%20types/near/196813587" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Wesley Wiser <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/narrowing.20down.20my.20slow-to-compile.20functions.20.2F.20types.html#196813587">(May 07 2020 at 18:41)</a>:</h4>
<p>Sorry :(</p>



<a name="196813669"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/narrowing%20down%20my%20slow-to-compile%20functions%20/%20types/near/196813669" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/narrowing.20down.20my.20slow-to-compile.20functions.20.2F.20types.html#196813669">(May 07 2020 at 18:42)</a>:</h4>
<p>spoken like a true compiler person... "secondary data" <span aria-label="stuck out tongue" class="emoji emoji-1f61d" role="img" title="stuck out tongue">:stuck_out_tongue:</span></p>



<a name="196813680"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/narrowing%20down%20my%20slow-to-compile%20functions%20/%20types/near/196813680" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Wesley Wiser <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/narrowing.20down.20my.20slow-to-compile.20functions.20.2F.20types.html#196813680">(May 07 2020 at 18:42)</a>:</h4>
<p>If linking is slow, have you looked at the <code>save-temps</code> option?</p>



<a name="196813681"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/narrowing%20down%20my%20slow-to-compile%20functions%20/%20types/near/196813681" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Wesley Wiser <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/narrowing.20down.20my.20slow-to-compile.20functions.20.2F.20types.html#196813681">(May 07 2020 at 18:42)</a>:</h4>
<p>Heh</p>



<a name="196813745"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/narrowing%20down%20my%20slow-to-compile%20functions%20/%20types/near/196813745" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/narrowing.20down.20my.20slow-to-compile.20functions.20.2F.20types.html#196813745">(May 07 2020 at 18:42)</a>:</h4>
<p>I have not; I don't even know if I've heard of it before</p>



<a name="196813761"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/narrowing%20down%20my%20slow-to-compile%20functions%20/%20types/near/196813761" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/narrowing.20down.20my.20slow-to-compile.20functions.20.2F.20types.html#196813761">(May 07 2020 at 18:43)</a>:</h4>
<p><em>starts searching</em></p>



<a name="196813769"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/narrowing%20down%20my%20slow-to-compile%20functions%20/%20types/near/196813769" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Wesley Wiser <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/narrowing.20down.20my.20slow-to-compile.20functions.20.2F.20types.html#196813769">(May 07 2020 at 18:43)</a>:</h4>
<p><a href="https://rustc-dev-guide.rust-lang.org/backend/debugging.html#compiler-options-to-know-and-love" title="https://rustc-dev-guide.rust-lang.org/backend/debugging.html#compiler-options-to-know-and-love">https://rustc-dev-guide.rust-lang.org/backend/debugging.html#compiler-options-to-know-and-love</a></p>



<a name="196813802"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/narrowing%20down%20my%20slow-to-compile%20functions%20/%20types/near/196813802" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Wesley Wiser <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/narrowing.20down.20my.20slow-to-compile.20functions.20.2F.20types.html#196813802">(May 07 2020 at 18:43)</a>:</h4>
<p>That would let you see what is actually being linked</p>



<a name="196814177"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/narrowing%20down%20my%20slow-to-compile%20functions%20/%20types/near/196814177" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/narrowing.20down.20my.20slow-to-compile.20functions.20.2F.20types.html#196814177">(May 07 2020 at 18:46)</a>:</h4>
<p>I'm not sure I'm making the logical leap back and forth...</p>



<a name="196814369"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/narrowing%20down%20my%20slow-to-compile%20functions%20/%20types/near/196814369" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Wesley Wiser <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/narrowing.20down.20my.20slow-to-compile.20functions.20.2F.20types.html#196814369">(May 07 2020 at 18:48)</a>:</h4>
<p>Ok, let me back up. I'm guessing you've profiled rustc compiling something and most of the time is spent in LLVM?</p>



<a name="196814411"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/narrowing%20down%20my%20slow-to-compile%20functions%20/%20types/near/196814411" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Wesley Wiser <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/narrowing.20down.20my.20slow-to-compile.20functions.20.2F.20types.html#196814411">(May 07 2020 at 18:48)</a>:</h4>
<p>Or linking specifically?</p>



<a name="196814618"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/narrowing%20down%20my%20slow-to-compile%20functions%20/%20types/near/196814618" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/narrowing.20down.20my.20slow-to-compile.20functions.20.2F.20types.html#196814618">(May 07 2020 at 18:49)</a>:</h4>
<p>yeah; I just changed a string literal in my warp routes and rebuilt. Here's the top of the <code>summarize</code> output:</p>
<div class="codehilite"><pre><span></span><code>+-----------------------------------------------+-----------+-----------------+----------+------------+------------+--------------+-----------------------+
| Item                                          | Self time | % of total time | Time     | Item count | Cache hits | Blocked time | Incremental load time |
+-----------------------------------------------+-----------+-----------------+----------+------------+------------+--------------+-----------------------+
| link_binary                                   | 4.13s     | 27.731          | 5.75s    | 1          | 0          | 0.00ns       | 0.00ns                |
+-----------------------------------------------+-----------+-----------------+----------+------------+------------+--------------+-----------------------+
| LLVM_module_codegen_emit_obj                  | 1.80s     | 12.070          | 1.80s    | 15         | 0          | 0.00ns       | 0.00ns                |
+-----------------------------------------------+-----------+-----------------+----------+------------+------------+--------------+-----------------------+
| LLVM_passes                                   | 1.61s     | 10.844          | 1.61s    | 1          | 0          | 0.00ns       | 0.00ns                |
+-----------------------------------------------+-----------+-----------------+----------+------------+------------+--------------+-----------------------+
| run_linker                                    | 1.61s     | 10.812          | 1.61s    | 1          | 0          | 0.00ns       | 0.00ns                |
+-----------------------------------------------+-----------+-----------------+----------+------------+------------+--------------+-----------------------+
| normalize_projection_ty                       | 944.43ms  | 6.348           | 1.18s    | 1335       | 0          | 0.00ns       | 0.00ns                |
+-----------------------------------------------+-----------+-----------------+----------+------------+------------+--------------+-----------------------+
| codegen_module                                | 916.17ms  | 6.158           | 1.26s    | 14         | 0          | 0.00ns       | 0.00ns                |
+-----------------------------------------------+-----------+-----------------+----------+------------+------------+--------------+-----------------------+
| evaluate_obligation                           | 582.76ms  | 3.917           | 671.57ms | 7821       | 0          | 0.00ns       | 0.00ns                |
+-----------------------------------------------+-----------+-----------------+----------+------------+------------+--------------+-----------------------+
| monomorphization_collector_graph_walk         | 327.07ms  | 2.199           | 1.98s    | 1          | 0          | 0.00ns       | 0.00ns                |
+-----------------------------------------------+-----------+-----------------+----------+------------+------------+--------------+-----------------------+
| metadata_decode_entry                         | 290.41ms  | 1.952           | 359.95ms | 117852     | 0          | 0.00ns       | 0.00ns                |
+-----------------------------------------------+-----------+-----------------+----------+------------+------------+--------------+-----------------------+
</code></pre></div>


<p>Total cpu time: 14.876862126s</p>



<a name="196814763"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/narrowing%20down%20my%20slow-to-compile%20functions%20/%20types/near/196814763" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Wesley Wiser <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/narrowing.20down.20my.20slow-to-compile.20functions.20.2F.20types.html#196814763">(May 07 2020 at 18:50)</a>:</h4>
<p>Gotcha</p>



<a name="196814780"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/narrowing%20down%20my%20slow-to-compile%20functions%20/%20types/near/196814780" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Wesley Wiser <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/narrowing.20down.20my.20slow-to-compile.20functions.20.2F.20types.html#196814780">(May 07 2020 at 18:51)</a>:</h4>
<p>Hmm</p>



<a name="196814948"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/narrowing%20down%20my%20slow-to-compile%20functions%20/%20types/near/196814948" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Wesley Wiser <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/narrowing.20down.20my.20slow-to-compile.20functions.20.2F.20types.html#196814948">(May 07 2020 at 18:52)</a>:</h4>
<p>Is this a debug or release build?</p>



<a name="196814971"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/narrowing%20down%20my%20slow-to-compile%20functions%20/%20types/near/196814971" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/narrowing.20down.20my.20slow-to-compile.20functions.20.2F.20types.html#196814971">(May 07 2020 at 18:52)</a>:</h4>
<p>debug.</p>



<a name="196815007"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/narrowing%20down%20my%20slow-to-compile%20functions%20/%20types/near/196815007" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Wesley Wiser <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/narrowing.20down.20my.20slow-to-compile.20functions.20.2F.20types.html#196815007">(May 07 2020 at 18:52)</a>:</h4>
<p>Do you know what linker you're using?</p>



<a name="196815056"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/narrowing%20down%20my%20slow-to-compile%20functions%20/%20types/near/196815056" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/narrowing.20down.20my.20slow-to-compile.20functions.20.2F.20types.html#196815056">(May 07 2020 at 18:53)</a>:</h4>
<p>I have not changed any defaults I know of and I'm macOS. I'm thus assuming something from LLVM.</p>



<a name="196815093"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/narrowing%20down%20my%20slow-to-compile%20functions%20/%20types/near/196815093" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Wesley Wiser <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/narrowing.20down.20my.20slow-to-compile.20functions.20.2F.20types.html#196815093">(May 07 2020 at 18:53)</a>:</h4>
<p>Ah</p>



<a name="196815288"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/narrowing%20down%20my%20slow-to-compile%20functions%20/%20types/near/196815288" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Wesley Wiser <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/narrowing.20down.20my.20slow-to-compile.20functions.20.2F.20types.html#196815288">(May 07 2020 at 18:55)</a>:</h4>
<p>IIRC the linker for macOS is not LLVM related and known to be pretty slow.</p>



<a name="196815332"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/narrowing%20down%20my%20slow-to-compile%20functions%20/%20types/near/196815332" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Wesley Wiser <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/narrowing.20down.20my.20slow-to-compile.20functions.20.2F.20types.html#196815332">(May 07 2020 at 18:55)</a>:</h4>
<p>And unfortunately lld (which is very fast) is pretty broken on macOS</p>



<a name="196815356"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/narrowing%20down%20my%20slow-to-compile%20functions%20/%20types/near/196815356" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Wesley Wiser <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/narrowing.20down.20my.20slow-to-compile.20functions.20.2F.20types.html#196815356">(May 07 2020 at 18:55)</a>:</h4>
<p>(Relevant issue <a href="https://github.com/rust-lang/rust/issues/39915#issuecomment-618726211" title="https://github.com/rust-lang/rust/issues/39915#issuecomment-618726211">https://github.com/rust-lang/rust/issues/39915#issuecomment-618726211</a>)</p>



<a name="196815615"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/narrowing%20down%20my%20slow-to-compile%20functions%20/%20types/near/196815615" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Wesley Wiser <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/narrowing.20down.20my.20slow-to-compile.20functions.20.2F.20types.html#196815615">(May 07 2020 at 18:57)</a>:</h4>
<p>Might be worth trying an alternate linker since it's such a large part of your compilation time? Some people on Reddit were suggesting this <a href="https://github.com/michaeleisel/zld" title="https://github.com/michaeleisel/zld">https://github.com/michaeleisel/zld</a></p>



<a name="196815691"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/narrowing%20down%20my%20slow-to-compile%20functions%20/%20types/near/196815691" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Wesley Wiser <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/narrowing.20down.20my.20slow-to-compile.20functions.20.2F.20types.html#196815691">(May 07 2020 at 18:58)</a>:</h4>
<p>I have no experience with it though</p>



<a name="196816144"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/narrowing%20down%20my%20slow-to-compile%20functions%20/%20types/near/196816144" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/narrowing.20down.20my.20slow-to-compile.20functions.20.2F.20types.html#196816144">(May 07 2020 at 19:01)</a>:</h4>
<p>thank you; I'll give that a shot.</p>



<a name="196871250"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/narrowing%20down%20my%20slow-to-compile%20functions%20/%20types/near/196871250" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/narrowing.20down.20my.20slow-to-compile.20functions.20.2F.20types.html#196871250">(May 08 2020 at 08:51)</a>:</h4>
<p>You can also reduce or disable the debug info level to speed up linking.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>